<template>
  <div class="clear-cache-page">
    <h1>清空缓存设置</h1>
    <button @click="clearCache">清空缓存</button>
    <!-- <button @click="reloadUserPinyin">重刷用户拼音</button> -->
  </div>
</template>

<script setup>
import { ipcApiRoute } from '@/api/main';
import { ipc } from '@/utils/ipcRenderer';
const clearCache = async () => {
	await ipc.invoke(ipcApiRoute.clearCache)
}

const reloadUserPinyin = async () => {
	await ipc.invoke(ipcApiRoute.reloadUserPinyin)
}
</script>

<style scoped>
.clear-cache-page {
  padding: 20px;
}
button {
  padding: 10px 20px;
  font-size: 16px;
}
</style>
